home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / util / cli / fdate.readme < prev    next >
Encoding:
Text File  |  1998-05-05  |  2.6 KB  |  92 lines

  1. Short:    Date formatter, for ANY date
  2. Author:   Chris F.A. Johnson
  3. Uploader: bq933@torfree.net (Chris Johnson)
  4. Type:     cli/util
  5. Requires: Should work on any Amiga
  6.  
  7. Date:      1998/04/04
  8.  
  9. Similar to the Unix "date" command, fdate can display the current date in
  10. any format.
  11.  
  12. Unlike the Unix "date" can display a date other than the current date.
  13. You may also have it display the date of a file.
  14.  
  15. OPTIONS:
  16.      -? Print program information
  17.  
  18.      The following options alter the date that will be displayed
  19.      (NOTE: These do not set the system date or time)
  20.  
  21.      -d n Day
  22.      -m n Month
  23.      -M n Minute
  24.      -y n Year (0-199 - relative to 1900)
  25.      -Y n Year (19nn)
  26.      -s n Second
  27.      -h n Hour
  28.      -f file   Use date of 'file'
  29.      -E   Easter
  30.      -j n Julian_Date
  31.      -o n (Offset by n days)
  32.      -F First day of month
  33.      -L Last day of month
  34.  
  35. e.g.
  36.     > fdate -m 12 -d 25 -Y 1996 -h 12 -M 33 -s 0
  37.     Wednesday 25 December 1996    12:33:00 pm
  38.  
  39.     > fdate -E -Y 1998
  40.     Sunday 12 April 1998  08:13:23 pm
  41.  
  42.     > fdate -f fdate
  43.     Saturday 04 April 1998  08:07:36 pm
  44.  
  45.  
  46. FORMAT STRING (enclose in quotes if string contains spaces):
  47.  
  48.     %a    - Abbreviated name for the day of week
  49.     %A    - Full name for the day of week
  50.     %b    - Abbreviated name for the month
  51.     %B    - Full name for the month
  52.     %c    - Default representation for the date & time
  53.     %d    - Day of the month 01-31
  54.     %H    - Hour 00-23 (24 hour time)
  55.     %I    - Hour 01-12  (12 hour time)
  56.     %i    - International date: YYYY/MM/DD
  57.     %j    - Day in the year 001-366
  58.     %J    - Julian date (including time as fraction of the day)
  59.     %L    - Lotus 1-2-3 date (including time as fraction of the day)
  60.     %m    - Month 01-12
  61.     %M    - Minute 00-59
  62.     %S    - Second 00-59
  63.     %p    - Indication of morning or afternoon: am or pm
  64.     %P    - Indication of morning or afternoon: AM or PM
  65.     %U    - Week of the year 00-53, Sunday is the first day in a week
  66.     %w    - Day of the week 0-6, Sunday=0
  67.     %W    - Day of the week 0-6, Monday=0
  68.     %x    - Default representation for the date only
  69.     %X    - Default representation for the time only
  70.     %y    - Year modulo 100 (00-99)
  71.     %Y    - Full year (e.g. 1990)
  72.   %%,\% - a literal '%' character
  73.   \n,\t - Newline, tab; any other character after \ is itself
  74.  
  75. e.g.
  76.  
  77.    > fdate "%i\t%J"
  78.    1998/04/04       2450907.84979166409
  79.  
  80.    > fdate "%d-%B-%Y"
  81.    04-April-1998
  82.  
  83.  
  84. ============================= Archive contents =============================
  85.  
  86. Original  Packed Ratio    Date     Time    Name
  87. -------- ------- ----- --------- --------  -------------
  88.    15944    8906 44.1% 04-Apr-98 20:18:40  fdate
  89.     2289    1107 51.6% 04-Apr-98 20:35:02  fdate.readme
  90. -------- ------- ----- --------- --------
  91.    18233   10013 45.0% 11-Apr-98 19:53:44   2 files
  92.